{% from "macros/forms.html" import form_input %}

<div class="bg-base-100 p-4">
  <h1 class="text-3xl font-bold mb-5 w-3/4 ml-[10%]">{{ submit_text }}</h1>
  <p class="text-base-content/60 text-[0.7rem] mb-5 w-1/2 ml-[10%]">ID: {{ report_item_type.id }}</p>

  <form id="report_item_type-form"
        class="w-3/4 ml-[10%]"
        {{ form_action }}
        hx-swap="innerHTML"
        hx-target="#form-container"
        hx-target-error="#form-container">
    {% include "partials/admin_form_error.html" %}
    {% set form_error = form_error | default({}) %}
    {{ form_input('Title', 'title', report_item_type.title, form_error.title, width="w-3/4") }}
    {{ form_input('Description', 'description', report_item_type.description, form_error.description, width="w-3/4") }}

    {% include "report_item_type/attribute_groups.html" %}

    <input type="submit" class="btn btn-primary w-full my-4" value="{{ submit_text }}" />
  </form>
</div>
